<template>
     <div class="title">父传子 DefineProps</div>
     <div class="inner">
        <input type="text" v-model="inputValue"><button @click="toSonClick">发送至子组件</button>
        <receiveChildVue :content="content" :objinfo="objinfo"></receiveChildVue>
     </div>
</template>

<script setup>
import {ref} from 'vue';
import receiveChildVue from '../../components/communicationParties/receiveChild.vue';
let inputValue=ref('父值：');
let content=ref(null);
let objinfo=ref({name:'张三',age:18})
function toSonClick(){
    content.value=inputValue.value;
    objinfo.value=objinfo.value;
}
</script>

<style scoped>


</style>